package com.njym.java.security.app.biz;


import com.github.pagehelper.PageHelper;
import com.njym.java.security.app.entity.FamilyClub;
import com.njym.java.security.app.mapper.FamilyClubMapper;
import com.njym.java.security.common.biz.BaseBiz;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 
 *
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-11-06 09:11:40
 */
@Service
public class FamilyClubBiz extends BaseBiz<FamilyClubMapper, FamilyClub> {
    @Resource
    private FamilyClubMapper familyClubMapper;

    public List<FamilyClub> queryAPPClub(Integer page, Integer limit, Integer clubId){
        PageHelper.startPage(page, limit);
        return familyClubMapper.queryAPPClub(clubId);
    }

    public int countAPPClub(){
        return familyClubMapper.countAPPClub();
    }
}